

package com.grj.park.controller;


import com.grj.park.common.R;
import com.grj.park.domain.Handle;
import com.grj.park.domain.Hazards;
import com.grj.park.service.HandleService;
import com.grj.park.service.HazardsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("handle")
public class HandleController {

    private final HandleService handleService;

    @GetMapping
    public R<List<Handle>> getHandleService(){
        return R.ok(handleService.list());
    }

}
